﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductKMListing2.ascx.cs" Inherits="Controls_ProductKMListing2" %>
<%@ Import Namespace="DTO" %>
<%@ Register src="AllowPagingDataList.ascx" tagname="AllowPagingDataList" tagprefix="uc1" %>
<script src="<%=Globals.ApplicationPath%>Jquery/jquery.js" type="text/javascript"></script>
<script src="<%=Globals.ApplicationPath%>Jquery/main.js" type="text/javascript"></script>

<style>
#preview{
	position:absolute;
	border:1px solid #757578;
	background:#333;
	padding:5px;
	display:none;
	color:#fff;
	}
</style>

 <asp:DataList ID="dtlProducts" EnableTheming="False" runat="server"
       DataKeyField="ID" GridLines="None" Width="100%" RepeatColumns="3" 
        ForeColor="Black">
       <ItemTemplate>
      
            <table cellpadding="6" cellspacing="6" >
                <tr>
                    <td class="titleProduct" align="center">
                        <asp:HyperLink runat="server" ID="hplTitle" Height="30px" Text='<%#Eval("Title")%>' NavigateUrl='<%#"~/ShowProduct.aspx?ID="+Eval("ID") %>' />
                    </td>
                </tr>
                <tr>
                    <td align="center">
                         <a href='<%#Eval("FullImageUrl") %>' target="_blank" class="preview"><img src='<%#Eval("SmallImageUrl")%>' width="140px" alt="gallery thumbnail" />
                    </td>
                 </tr>
                <tr>
                    <td align="center">
                        <div class="details">
                            <asp:HyperLink  runat="server" ID="hplDetail" Text="xem chi tiết..." NavigateUrl='<%#"~/ShowProduct.aspx?ID="+Eval("ID") %>' />                        
                        </div>
                    </td>
                </tr>
            </table>
       </ItemTemplate>
    </asp:DataList>
    
<asp:ObjectDataSource runat="server" ID="objAllProduct" TypeName="BLL.Store.Product" SelectMethod="ListProductsKM" />
<uc1:AllowPagingDataList ID="AllowPagingDataList1" runat="server" />
